package com.dy.lock.screen.dao.impl;

import org.springframework.stereotype.Repository;

import com.dy.lock.screen.dao.CustomerLikeDao;
import com.dy.lock.screen.pojo.CustomerLikeInfo;
import com.dy.lock.screen.vo.CommonCommentLikeVo;

@Repository("customerLikeDao")
public class CustomerLikeDaoImpl extends BaseDaoImpl<CustomerLikeInfo, String>
		implements CustomerLikeDao {

	@Override
	public String getQueryNamespace() {
		return "mybatis.xml.CustomerLikeMapper";
	}

	@Override
	public CustomerLikeInfo queryByPrimaryKey(String id) {
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".selectByPrimaryKey", id);
	}

	@Override
	public CustomerLikeInfo queryByMidAndCid(CustomerLikeInfo likeInfo) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".queryByMidAndCid", likeInfo);
	}

	@Override
	public CommonCommentLikeVo queryDetailByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".queryDetailByPrimaryKey", id);
	}

}
